// const MYSQL_POOL = require('../mysql/pool.js')
// const TEST_TABLE = 'test';
const axio = require('../http/axios.js')

// HTTP 库
module.exports = async ctx => {
    // ctx.redirect('/cart');
    // console.log('get:', ctx.query)
    // console.log('post:', ctx.request.body)
    // const data = await MYSQL_POOL("INSERT INTO " + TEST_TABLE + "(name) VALUES('" + ctx.query.name + "')")
    const data = await axio("https://m2.viiart.cn/v1/auth/get",{});
    ctx.state.data = data.data

}